using Identity.Application.Permissions.CommandHandler;
using Microsoft.Extensions.DependencyInjection;

namespace Identity.Application;

public static class ServiceCollectionExtensions
{
    public static IServiceCollection AddIdentityApplication(this IServiceCollection services)
    {
        services.AddMediatR(cfg =>

            {
                cfg.RegisterServicesFromAssembly(typeof(RegisterUserCommandHandler).Assembly);
            });
            
        
        return services;
    }
}